package com.bxsy.modules.demo.test.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import com.bxsy.modules.demo.test.entity.BxsyOrderCustomer;
import com.bxsy.modules.demo.test.entity.BxsyOrderMain;
import com.bxsy.modules.demo.test.entity.BxsyOrderTicket;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 订单
 * @author： bxsy-boot
 * @date：   2019-02-15
 * @version： V1.0
 */
public interface IBxsyOrderMainService extends IService<BxsyOrderMain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(BxsyOrderMain bxsyOrderMain,List<BxsyOrderCustomer> bxsyOrderCustomerList,List<BxsyOrderTicket> bxsyOrderTicketList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(BxsyOrderMain bxsyOrderMain,List<BxsyOrderCustomer> bxsyOrderCustomerList,List<BxsyOrderTicket> bxsyOrderTicketList);
	
	/**
	 * 删除一对多
	 * @param jformOrderMain
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 * @param jformOrderMain
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
}
